<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%-- <%@include file="../../common/taglib/taglib.jsp"%> --%>
<div class="pageContent">
	<form id="form" method="post" action="${baseURL }/agentMerchant/edit" cssClass="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);" method="post">
		<div class="pageFormContent" layoutH="56">
			<input type="hidden" name="navTabId" value="merchantList" />
			<input type="hidden" name="callbackType" value="closeCurrent" />
			<input type="hidden" name="forwardUrl" value="" />
			<input type="hidden" name="id" value="${bean.id }">
			<!-- 设置商户的基本信息  start -->
			<fieldset>
				<legend>基本信息</legend>
				<dl>
					<dt>企业简称：</dt>
					<dd>
						<input type="text" name="userName" class="required" size="25" maxlength="128" value="${merchent.userName}" />
					</dd>
				</dl>
				<dl>
					<dt>企业全称：</dt>
					<dd>
						<input type="text" name="fullName" class="required" size="25" maxlength="128" value="${merchent.fullName}" />
					</dd>
				</dl>
				<dl>
					<dt>企业地址：</dt>
					<dd>
						<input type="text" name="address" class="required" size="25" maxlength="128" value="${merchent.address}" />
					</dd>
				</dl>
				<dl>
					<dt>合同编号：</dt>
					<dd>
						<input type="text" name="contractNo" size="25" maxlength="128" value="${merchent.contractNo}" />
					</dd>
				</dl>
				<dl>
					<dt>法人代表姓名：</dt>
					<dd>
						<input type="text" name="legalPerson" class="required" size="25" maxlength="128" value="${merchent.legalPerson}" />
					</dd>
				</dl>
				<dl>
					<dt>法人身份证号：</dt>
					<dd>
						<input type="text" name="frCardNo" class="required" size="25" minlength="15" maxlength="18" value="${merchent.cardNo}" />
					</dd>
				</dl>
				<dl>
					<dt>营业执照号：</dt>
					<dd>
						<input type="text" name="licenseNo" class="required" size="25" minlength="11" maxlength="30" value="${merchent.licenseNo}" />
					</dd>
				</dl>
				<dl>
					<dt>业务联系人：</dt>
					<dd>
						<input type="text" name="busiContactName" class="required" size="25" maxlength="128" value="${merchent.busiContactName}" />
					</dd>
				</dl>
				<dl>
					<dt>业务联系人手机号码：</dt>
					<dd>
						<input type="text" name="busiContactMobileNo" class="required phone" size="25" maxlength="11" value="${merchent.busiContactMobileNo}" />
					</dd>
				</dl>
				
				<!--------------------修改部分-------------------->
				<dl>
					<dt>业务联系人邮箱：</dt>
					<dd>
						<input type="text" name="busiContactEmail" class="required email" size="25" maxlength="30" value="${merchent.busiContactEmail}"/>
					</dd>
				</dl>
				<dl>
					<dt>企业网站：</dt>
					<dd>
						<input type="text" name="userWeb" class="required" size="25" maxlength="30" value="${merchent.userWeb}"/>
					</dd>
				</dl>
				<dl>
					<dt>ICP备案号：</dt>
					<dd>
						<input type="text" name="icpNo" class="required" size="25" maxlength="30" value="${merchent.icpNo}"/>
					</dd>
				</dl>
				<!--------------------修改部分-------------------->
				
				<dl>
					<dt>登录账号(手机号)：</dt>
					<dd>
						<input type="text" name="mobile" class="required phone" size="25" maxlength="11" value="${merchent.mobile}" />
					</dd>
				</dl>
			</fieldset>
			<c:if test="${merchent.status ne 'ACTIVE' }">
				<fieldset>
					<legend>出款配置</legend>
					<dl>
						<dt>开户银行：</dt>
						<dd>
							<input type="text" name="bank.bankName" size="25" maxlength="128" class="required" readonly="readonly" value="${merchentAccount.bankName}" />
							<a class="btnLook" href="${baseURL}/agentMerchant/bankLookupList" lookupGroup="bank">搜索</a>
							<input type="hidden" name="bank.bankChannelNo" value="${merchentAccount.bankChannelNo }" />
						</dd>
					</dl>
					<dl>
						<dt>银行账户类型：</dt>
						<dd>
							<select name="bankAccountType" class="required">
								<c:forEach var="item" items="${BankAccountTypeEnums}">
									<option value="${item.name }" <c:if test="${item.name == merchentAccount.bankAccountType}">selected="selected"</c:if>>${item.desc }</option>
								</c:forEach>
							</select>
						</dd>
					</dl>
					<dl>
						<dt>银行开户名：</dt>
						<dd>
							<input type="text" name="bankAccountName" class="required" size="25" maxlength="80" value="${merchentAccount.bankAccountName}" />
						</dd>
					</dl>
					<dl>
						<dt>银行账号：</dt>
						<dd>
							<input type="text" name="bankAccountNo" class="required" size="25" minlength="8" maxlength="19" value="${merchentAccount.bankAccountNo}" />
						</dd>
					</dl>
					<dl>
						<dt>证件类型：</dt>
						<dd>
							<select name="cardType" class="required">
								<c:forEach var="item" items="${CardTypeEnums}">
									<option value="${item.name }" <c:if test="${item.name == merchentAccount.cardType}">selected="selected"</c:if>>${item.desc }</option>
								</c:forEach>
							</select>
						</dd>
					</dl>
					<dl>
						<dt>证件号码：</dt>
						<dd>
							<input type="text" name="cardNo" class="required" size="25" minlength="15" maxlength="18" value="${merchentAccount.cardNo}" />
						</dd>
					</dl>
					<dl>
						<dt>手机号：</dt>
						<dd>
							<input type="text" name="mobileNo" class="required phone" size="25" maxlength="11" value="${merchentAccount.mobileNo}" />
						</dd>
					</dl>
					<dl>
						<dt>开户行详细地址：</dt>
						<dd>
							<input type="text" name="street" class="required" size="25" maxlength="128" value="${merchentAccount.street}" />
						</dd>
					</dl>

					<dl>
						<dt>出款限额百分比：</dt>
						<dd>
							<input type="text" name="settLimit" class="required number" size="25" maxlength="11" value="${merchent.settLimit}" />
							&nbsp;%
						</dd>
					</dl>
				</fieldset>
			</c:if>
			
			<!-- 
			
			<fieldset>
				<legend>销售配置</legend>
				<dl>
					<dt>销售人员：</dt>
					<dd>
						<input type="text" name="sales.salesName" size="25" maxlength="128" class="required" readonly="readonly" />
						<a class="btnLook" href="${baseURL}/agentMerchant/salesLookupList" lookupGroup="sales">搜索</a>
						<input type="hidden" name="sales.salesNo" value="" />
					</dd>
				</dl>
			</fieldset>
			
			-->
		</div>

		<div class="formBar">
			<ul style="float: left;">
				<li>
					<div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">保存</button>
						</div>
					</div>
				</li>
				<li>
					<div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div>
				</li>
			</ul>
		</div>
	</form>
</div>

